package com.cqc.other.enumTest.a;

public enum SeasonEnum {

    SPRING(1, "春", "3度"),
    SUMMER(2, "夏", "30度"),
    AUTUMN(3, "秋", "12度"),
    WINTER(4, "冬", "0度");

    private final int code;
    private final String name;
    private final String temperature;

    SeasonEnum(int code, String name, String temperature) {
        this.code = code;
        this.name = name;
        this.temperature = temperature;
    }

    public void f1() {
        System.out.println("SeasonEnum.f1()," + this.getName());
    }


    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getTemperature() {
        return temperature;
    }
}
